<div class="main_content">
	<h2>Recent Activity</h2>
	<div id="main_content">
		<% if !@new_messages.empty? || !@friend_requests.empty? %>
		
			<h3>New Messages</h3>
			<% if @new_messages.count > 0 %>
				<% @new_messages.each do |m| %>
					<%= render :template => "popsicles/_show_clusters", :locals => { :message => @m = m, :type => @type = "private" } %>
				<% end %>
			<% else %>
				<p>No new messages.</p>
			<% end %>
			
			<h3>New Friend Requests</h3>
			<% if @friend_requests.count > 0 %>
				<%@friend_requests.each do |friendship| %>
					<% friend = Entity.find(friendship.entity_id) %>
					<div class="friend_request_single">
						<h4><%= link_to friend.name, show_friend_path(friend), :class => 'entity_link' %></h4>
						<p><%= friend.description %></p>
						<%= link_to 'Accept friend request from ' + friend.name, accept_friend_request_path(friendship.id), :confirm => 'Are you sure?' %>
						<%= link_to 'Deny', deny_friend_request_path(friendship.id), :confirm => 'Are you sure?' %>
						<%= link_to 'Block', block_friend_request_path(friendship.id), :confirm => 'Are you sure?' %>
					</div>
				<% end %>
			<% else %>
				<p>No new friend requests.</p>
			<% end %>
			
		<% else %>
			<p>No recent activity, why not search for friends?</p>
		<% end %>
	</div>
</div>